package com.zhaolulu.config;

import org.springframework.ai.chat.model.ChatModel;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * @author 火飞鹰
 * @CSDN https://blog.csdn.net/weixin_44811903
 * @date 2025/10/22 23:02
 */
@Configuration
public class ChatModelConfiguration {
//    @Autowired
//    @Qualifier("ollamaChatModel")
//    private ChatModel chatModel;

    @Bean
    @Primary
    public ChatModel primaryChatModel(@Qualifier("ollamaChatModel") ChatModel chatModel) {
        return chatModel;
    }
}

